#region Import section

using System;
using NUnit.Framework;
using SQLRunnerLib.Util;
using SQLTests.Framework;

#endregion
namespace SQLTests.Lib.Util
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	
	
	public class PropertyTests:
		AbstractTest
	{
		
		

		[Test]
		public void CheckProperty()
		{
			
			Assert.AreEqual(_property.name, "myProperty");
			Assert.AreEqual(_property.value, "myValue");
		}

		[Test]
		public void CheckProperties()
		{
			Assert.AreEqual( _properties.Items.Length, 1);
			Assert.AreEqual(_properties.FindProperty("myProperty"), _property);
		}

		#region fixtures
		private RunnerProperty _property;
		private RunnerProperties _properties;

		[TestFixtureSetUp]
		protected override void SetUpFixtures()
		{
			
			Console.WriteLine("Setting up fixtures");
			_properties = new RunnerProperties();
			_property = new RunnerProperty();
			_property.name = "myProperty";
			_property.value ="myValue";
			_properties.Items = new RunnerProperty[]{_property};

		}
		#endregion
	}
}
